02d9fe8fd10cbcfd775395cd655495802cb536ba,src/com/vaadin/terminal/gwt/client/ui/layout/VLayoutSlot.java,VLayoutSlot,positionHorizontally,#number#number#,63

Before Change


            if (alignment.isHorizontalCenter()) {
                currentLocation += (allocatedSpace - usedWidth) / 2d;
                if (captionAboveCompnent) {
                    captionStyle.setLeft(usedWidth / 2 - (captionWidth / 2d),
                            Unit.PX);
                    captionStyle.clearRight();
                }
            } else {

After Change


        AlignmentInfo alignment = getAlignment();
        if (!alignment.isLeft()) {
            double usedWidth;
            if (isRelativeWidth()) {
                String percentWidth = getWidget().getElement().getStyle()
                        .getWidth();
                double percentage = parsePercent(percentWidth);
                usedWidth = availableWidth * (percentage / 100);
            } else {
                usedWidth = getWidgetWidth();
            }
            if (alignment.isHorizontalCenter()) {
                currentLocation += (allocatedSpace - usedWidth) / 2d;
                if (captionAboveCompnent) {
                    captionStyle.setLeft((usedWidth - captionWidth) / 2,
                            Unit.PX);
                }
            } else {
                currentLocation += (allocatedSpace - usedWidth);